/*
 * @Author: Du.M
 * @Date: 2021-07-05 10:49:26
 * @LastEditTime: 2021-07-09 16:58:15
 * @FilePath: \express_basics\routes\table.js
 */
const express = require('express')
const routeTable = express.Router()
const multipart1 = require('connect-multiparty');
const { getTableList ,postTableList,putTableList,deleteTableList,getHouseTree} = require('../service/tableService')


const multipartMiddleware = multipart1();
/* GET home page. */
routeTable.post('/api/tablelist/',postTableList) //增
routeTable.get('/api/tablelist/',getTableList) //查
routeTable.put('/api/tablelist/',putTableList) //改
routeTable.delete('/api/tablelist/:id',deleteTableList) //删
routeTable.get('/api/tablelist/house/',getHouseTree)

module.exports = routeTable